﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<GlassStore.Models.SubCatalogue>" %>
         
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="/Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
<script src="/Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>  
            
<%--            <div class="editor-label">
                <%: Html.LabelFor(model => model.Id) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Id) %>
                <%: Html.ValidationMessageFor(model => model.Id) %>
            </div>--%>
            
<%--            <div class="editor-label">
                <%: Html.LabelFor(model => model.TopCatalogueId) %>
            </div>--%>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.TopCatalogueId, new { @readonly = true,@type="hidden" /*style = "display: none;"*/ })%>
                <%: Html.ValidationMessageFor(model => model.TopCatalogueId) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Name) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Description) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Description) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PictureURL) %>
            </div>
<%--            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PictureURL) %>
                <%: Html.ValidationMessageFor(model => model.PictureURL) %>
            </div>--%>
            <% if(!string.IsNullOrEmpty(Model.PictureURL)){ %>
              <img src="<%:Model.PictureURL %>" alt="没有图片" />
            <%  } %>
            <input type="file" name="FileUpload1" /><br />
            


